package com.bsoft.ecommerce.service;

import com.bsoft.ecommerce.common.TableId;
import com.bsoft.ecommerce.goods.DeductgoodsInventory;
import com.bsoft.ecommerce.goods.GoodsInfo;
import com.bsoft.ecommerce.goods.SimpleGoodsInfo;
import com.bsoft.ecommerce.vo.PageSimplegoodsInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public interface IGoodsService {
    //根据table 商品id
    List<GoodsInfo> getGoodsInfoByTableId(TableId tableId);

    PageSimplegoodsInfo getSimpleGoodsInfoByPage(int page);
    //简单商品信息
    List<SimpleGoodsInfo> getSimpleGoodsInfoByTableId(TableId tableId);
    Boolean deductGoodsInventory(List<DeductgoodsInventory> deductgoodsInventories);


}
